<script setup lang="ts">
import { onMounted } from 'vue'
import * as echarts from 'echarts'
import { pieChart } from '@/router/pieChart'

function Media(){
  const myChart2 = echarts.init(document.getElementById('main2'));
  // 舆情线型图
  myChart2.setOption(pieChart());
}


onMounted(()=>{
  Media()
})
</script>

<template>
<div Media>
  <div id="main2">

  </div>
</div>
</template>

<style scoped>
[Media]{
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;

}
#main2{
  width: 100%;
  height: 100%;
}
</style>
